using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Impact.Web.Admin
{
    /// <summary>
    /// code-behind for changepassword screen
    /// </summary>
    public partial class ChangePassword : System.Web.UI.Page
    {
        /// <summary>
        /// overridde of onload to set parameters from querystring
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (!IsPostBack)
            {
                string username = Request.QueryString["username"];
                if (!string.IsNullOrEmpty(username))
                {
                    changePassword.UserName = username;

                    string editPage = string.Format("editUser.aspx?username={0}", username);
                    changePassword.CancelDestinationPageUrl = editPage;
                    changePassword.ContinueDestinationPageUrl = editPage;
                }
            }

        }
    }
}
